projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3042724
)
ostbuild: Recursively make mount points private
author
Colin Walters
<walters@verbum.org>
Tue, 6 Dec 2011 19:36:57 +0000
(14:36 -0500)
committer
Colin Walters
<walters@verbum.org>
Tue, 6 Dec 2011 19:36:57 +0000
(14:36 -0500)
This ensures we're not going to mutate any global state.
src/ostbuild/ostbuild-user-chroot.c
patch
|
blob
|
history
diff --git
a/src/ostbuild/ostbuild-user-chroot.c
b/src/ostbuild/ostbuild-user-chroot.c
index ed8d61682874c7d508b77b171c6b9b5782222e53..c75654a5989d8aa5e0ca99087fbe1671e0b0097b 100644
(file)
--- a/
src/ostbuild/ostbuild-user-chroot.c
+++ b/
src/ostbuild/ostbuild-user-chroot.c
@@
-136,8
+136,8
@@
main (int argc,
* totally correct because the targets for our bind mounts may still
* be shared, but really, Fedora's sandbox is broken.
*/
- if (mount ("/", "/", "none", MS_PRIVATE, NULL) < 0)
- fatal_errno ("mount(/, MS_PRIVATE)");
+ if (mount ("/", "/", "none", MS_PRIVATE
| MS_REC
, NULL) < 0)
+ fatal_errno ("mount(/, MS_PRIVATE
| MS_REC
)");
/* Now let's set up our bind mounts */
for (i = 0; i < after_bind_arg_index; i += 3)